/**
 * 应用程序配置
 */
module.exports = {
  server: {
    port: 3000,
    env: 'development'
  },
  database: {
    host: 'localhost',
    port: 3306,
    name: 'qipaishi-ry',
    user: 'root',
    password: '123456',
    dialect: 'mysql',
    pool: {
      max: 10,
      min: 0,
      acquire: 30000,
      idle: 10000
    },
    logging: false
  },
  jwt: {
    secret: 'qipaishi_secret_key',
    expiresIn: '7d',
    issuer: 'qipaishi-api'
  },
  email: {
    host: 'smtp.163.com',
    port: 465,
    secure: true,
    user: '16607663249@163.com',
    pass: 'MSfED38SSzjrqHME' // 使用提供的密钥
  },
  verification: {
    expireMinutes: 15
  },
  alipay: {
    appId: '2021000000000000',
    privateKey: 'your_private_key',
    publicKey: 'alipay_public_key',
    gateway: 'https://openapi.alipaydev.com/gateway.do',
    notifyUrl: 'http://localhost:3000/api/mobile/pay/alipay/notify',
    returnUrl: 'http://localhost:3000/api/mobile/pay/alipay/return'
  }
}; 